<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Xmlrpc_client extends CI_Controller {


	function index()
	{
		$this->load->helper('url');
		$server_url = site_url('xmlrpc_server');

		$this->load->library('xmlrpc');

		$this->xmlrpc->server($server_url,80);
		$this->xmlrpc->method('Greetings');

		$request = array('How is it going?');
		$this->xmlrpc->request($request);

		if( ! $this->xmlrpc->send_request())
		{
			echo $this->xmlrpc->display_error();
		}
		else
		{
			echo '<pre>';
			print_r($this->xmlrpc->display_response());
			echo '</pre>';
		}

	}

	
}

/* End of file xmlrpc_client.php */
/* Location: ./application/controllers/xmlrpc_client.php */